﻿using System.Collections.Generic;
using System.Runtime.Serialization;

namespace IMDBApi.Contracts.Entities.Title.ParentalGuide
{
    [DataContract]
    public class ParentalGuide
    {
        [DataMember(Name = "exp")]
        public int exp { get; set; }

        [DataMember(Name = "@meta")]
        public Meta Meta { get; set; }

        [DataMember(Name = "data")]
        public Data Data { get; set; }

        [DataMember(Name = "copyright")]
        public string Copyright { get; set; }
    }

    [DataContract]
    public class Meta
    {
        [DataMember(Name = "serverTimeMs")]
        public int ServerTime { get; set; }

        [DataMember(Name = "requestId")]
        public string RequestId { get; set; }
    }

    [DataContract]
    public class Data
    {
        [DataMember(Name = "parental_guide")]
        public List<Item> ParentalGuide { get; set; }
    }

    [DataContract]
    public class Item
    {
        [DataMember(Name = "text")]
        public string Text { get; set; }

        [DataMember(Name = "label")]
        public string Label { get; set; }
    }
}
